package com.example.cursor_orm.model;

/**
 * 用户角色关联模型类
 * 对应数据库表: user_role
 */
public class UserRole {
    private Integer userId;
    private Integer roleId;

    // 构造函数
    public UserRole() {}

    public UserRole(Integer userId, Integer roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    // Getter和Setter方法
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "UserRole{" +
               "userId=" + userId +
               ", roleId=" + roleId +
               '}';
    }
} 